<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/niu/curr/list.js"></script>
<script type="text/javascript">
    function addAccount() {
        pageii = layer.open({
            title : "新增",
            type : 2,
            area : [ "600px", "80%" ],
            content : rootPath + '/curr/addUI.shtml'
        });
    }
    function delAccount() {
        var cbox = grid.getSelectedCheckbox();
        if (cbox == "") {
            layer.msg("请选择删除项！！");
            return;
        }
        layer.confirm('是否删除？', function(index) {
            var url = rootPath + '/curr/deleteEntity.shtml';
            var s = CommnUtil.ajax(url, {
                ids : cbox.join(",")
            }, "json");
            if (s == "success") {
                layer.msg('删除成功');
                grid.loadData();
            } else {
                layer.msg('删除失败');
            }
        });
    }

    function editAccount() {
        layer.msg('暂未实现');
    }
</script>
<div class="m-b-md">

</div>
<header class="panel-heading">
	<div class="doc-buttons">
		<button type="button" id="addAccount" onclick="addAccount()" class="btn btn-primary marR10">新增</button>
		<button type="button" id="editAccount" onclick="editAccount()" class="btn btn-info marR10">编辑</button>
		<button type="button" id="delAccount" onclick="delAccount()" class="btn btn-danger marR10">删除</button>
	</div>
</header>
<div class="table-responsive">
	<div id="paging" class="pagclass"></div>
</div>
